import logging

# 配置模块日志
logger = logging.getLogger("image_similarity")
logger.setLevel(logging.INFO)

# 如果没有处理器，添加一个
if not logger.handlers:
    handler = logging.StreamHandler()
    formatter = logging.Formatter(
        '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    handler.setFormatter(formatter)
    logger.addHandler(handler)
